<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增驱动电机型号')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-motorModel-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">电机型号名称：</label>
                <div class="col-sm-8">
                    <input name="motorModelName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机种类：</label>
                <div class="col-sm-8">
                    <select name="motorType" class="form-control m-b">
                        <option value="马达">马达</option>
                        <option value="电机">电机</option>
                        <option value="秘制">秘制</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机品牌名称：</label>
                <div class="col-sm-8">
                    <input name="motorBrandName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机冷却方式：</label>
                <div class="col-sm-8">
                    <input name="drivemotorCoolingmode" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定电压：</label>
                <div class="col-sm-8">
                    <input name="retedVoltage" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定电流：</label>
                <div class="col-sm-8">
                    <input name="ratedCurrent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定功率：</label>
                <div class="col-sm-8">
                    <input name="ratedPower" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">峰值功率：</label>
                <div class="col-sm-8">
                    <input name="peakPower" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">有效比功率：</label>
                <div class="col-sm-8">
                    <input name="effectiveSpecific" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定功率转速：</label>
                <div class="col-sm-8">
                    <input name="ratedPowerSpeed" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机最高转速：</label>
                <div class="col-sm-8">
                    <input name="drivemotorMaximumSpeed" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机峰值转矩：</label>
                <div class="col-sm-8">
                    <input name="drivemotorPeakTorque" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机最大输出转矩：</label>
                <div class="col-sm-8">
                    <input name="drivemotorMaximumOutputTorque" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生产厂商名称：</label>
                <div class="col-sm-8">
                    <input name="manufacturerName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">控制器型号：</label>
                <div class="col-sm-8">
                    <input name="controllerModel" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">控制器厂商：</label>
                <div class="col-sm-8">
                    <input name="controllerManufacturer" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "parts/motorModel"
        $("#form-motorModel-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-motorModel-add').serialize());
            }
        }
    </script>
</body>
</html>
